from selenium import webdriver
from selenium.webdriver import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service

service = Service(executable_path="../driver/chromedriver.exe")
driver = webdriver.Chrome(service=service)

driver.get("https://www.jd.com")
text = driver.find_element(By.XPATH, "//input[@id='kw']")
text.send_keys("selenium", Keys.RETURN)

if __name__ == '__main__':
    pass
